import 'package:flutter/material.dart';

class HomePage extends StatefulWidget {
  @override
  HomePageState createState() {
    return new HomePageState();
  }
}

class HomePageState extends State<HomePage> {
  @override
  Widget build(BuildContext context) {
    return new ListView(
      children: <Widget>[
        new ListTile(
          leading: new Image.asset(
            "images/img.jpg",
            width: 40.0,
            height: 40.0,
            fit: BoxFit.cover,
          ),
          title: new Text("马化腾"),
          subtitle: new Text("充钱我就叫你爸爸"),
          trailing: new Text("9:00"),
          onTap: () {},
        ),
        new Divider(
          height: 0.5,
        ),
        new ListTile(
          leading: new Image.asset(
            "images/lebron.jpg",
            width: 40.0,
            height: 40.0,
            fit: BoxFit.cover,
          ),
          title: new Text("Lebron James"),
          subtitle: new Text("I love this game."),
          trailing: new Text("10:14"),
          onTap: () {},
        ),
        new Divider(
          height: 0.5,
        ),
        new ListTile(
          leading: new Image.asset(
            "images/a001.jpg",
            width: 40.0,
            height: 40.0,
            fit: BoxFit.cover,
          ),
          title: new Text("石甲州"),
          subtitle: new Text("帮我带饭啊，钱放你桌子上了"),
          trailing: new Text("6:35"),
          onTap: () {},
        ),
        new Divider(
          height: 0.5,
        ),
        new ListTile(
          leading: new Image.asset(
            "images/a002.jpg",
            width: 40.0,
            height: 40.0,
            fit: BoxFit.cover,
          ),
          title: new Text("迪丽热巴"),
          subtitle: new Text("敌军还有五秒钟到达战场"),
          trailing: new Text("23:44"),
          onTap: () {},
        ),
        new Divider(
          height: 0.5,
        ),
        new ListTile(
          leading: new Image.asset(
            "images/a003.jpg",
            width: 40.0,
            height: 40.0,
            fit: BoxFit.cover,
          ),
          title: new Text("Bill Gates"),
          subtitle: new Text("I will offer you a good job"),
          trailing: new Text("20:45"),
          onTap: () {},
        ),
        new Divider(
          height: 0.5,
        ),
      ],
    );
  }
}
